#!/bin/bash
today=`date +"%Y%m%d"`
hive -e "load data inpath '/user/clicks/$today/clicklog.dat' into table mydb.user_clicks partition(dt=$today)"
echo "load data over"